package edu.sctu.zhengsenwen.month201505.day25150505;

/**
 * Created by user15 on 2015/5/5.
 */
public class AnIntegerDivisibleByNine {
    public static void main(String[] args) {
        int n = 36;
        int sum = 0;
        while (n > 0) {
            sum = sum + n % 10;
            n = n / 10;
        }
        if (sum % 9 == 0) {
            System.out.println("Can an integer divisible by nine.");
        } else {
            System.out.println("Can not an integer divisible by nine.");

        }
    }
}
